<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<c:set var="ctx" value="<@jspEl 'pageContext.request.contextPath'/>"/>

<#assign className = table.className>   
<#assign classNameFirstLower = className?uncap_first> 
<#assign classNameLowerCase = className?lower_case> 

<html>
<head>
	<title>${classNameFirstLower}</title>
</head>
<body>
<form id="inputForm" action="<@jspEl 'ctx'/>/gtd/${classNameLowerCase}/save" method="post" class="form-horizontal">
<input type="hidden" id="id" name="id" value="<@jspEl classNameFirstLower+'.id'/>"/>
<fieldset>
	 <legend><small>${classNameFirstLower}s</small></legend>

	 <#list table.columns as column>
	   <#if !column.pk>
		  <div class="control-group">
		<label class="control-label" for="${column.columnNameFirstLower}">${column.columnNameFirstLower}</label>
		<div class="controls">
		<input type="text" name="${column.columnNameFirstLower}" value="<@jspEl classNameFirstLower+'.'+column.columnNameFirstLower/>" class="input-xlarge" id="${column.columnNameFirstLower}">
		<p class="help-block"></p>
		</div>
		</div>
		
	   </#if>
	 
	</#list>

	 

 <div class="control-group">
<div class="controls">
<button type="submit" class="btn btn-primary"> <i class="icon-ok-sign icon-white"></i> 保存</button>
<a href="<@jspEl 'ctx'/>/gtd/${classNameLowerCase}/list" class="btn"><i class="icon-share-alt"></i> 返回</a>
</div>
</div>

</fieldset>
</form>
 
</body>
</html>